<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>WEUI Cell 源码</title>
    <style>
        /* css reset */
        *{
            margin: 0;
            padding: 0;
            outline: 0; /*轮廓  不影响盒子模型计算的边框 不会影响文档流*/
        }
        /* inherit 会继承的css */
        html {
            /* IE */
            -ms-text-size-adjust: 100%;
            /* chorm 为首， 360浏览器  老年机 强制放大文字  不允许缩放文字*/
            -webkit-text-size-adjust: 100%;
        }
        body, html {
            height: 100%; /* 占据全屏 */
            /* 按上去高亮颜色   移动端独有的    任何元素的默认高亮给干掉 */
            -ms-tab-highlight-color: transparent;
        }
        body {
            /* 苹果 安卓  鸿蒙 */
            font-family: -apple-system-font, Helvetica Neue, Helvetica,sans-serif;
            --weui-BG-0:#111;
            --weui-BG-2:#191919;
            --weui-FG-0: rgba(255,255,255,0.8);
            --weui-FG-1: rgba(255,255,255,0.5);
            --weui-FG-3: rgba(255,255,255,0.1);
        }
        .page, body {
            /* css 变量 css2  css3  css4
               可以多次使用 
            */
            background-color: var(--weui-BG-0);
        }
        .weui-cells__title {
            margin-top: 16px;
            margin-bottom: 3px;
            padding-left: 16px;
            padding-right: 16px;
            color: var(--weui-FG-1);
            font-size: 14px;
            line-height: 1.4; /* 本身字体的倍数 */
        }
        .weui-cells__title + .weui-cell {
            /* + 兄弟选择器 有title的weui-cell  权重更大*/
            margin-top: 0;
        }
        .weui-cells {
            /* 集合组件 */
            margin-top: 8px;
            background-color: var(--weui-BG-2);
            overflow: hidden;
            position: relative;
        }
        .weui-cells:before {
            /* before css伪元素 元素内容开始之前 content属性必须有 */
            content: " ";
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            height: 1px;
            /* 1像素在高清手机中还是有点粗，压缩为0.5px */
            border-top: 1px solid rgba(0,0,0,0.1);
            border-top: 1px solid var(--weui-FG-3);
            color: rgba(0,0,0,0.1);
            color: var(--weui-FG-3);
            -webkit-transform-origin: 0 0;
            transform-origin: 0 0;
            -webkit-transform: scaleY(0.5);
            transform: scaleY(0.5);
            z-index: 2;
        }
        .weui-cell{
            padding: 16px;
            position: relative;
            /* 弹性布局，早期叫box布局 */
            display: -webkit-box;
            display: -webkit-flex;
            display: flex;
            -webkit-box-align: center;
            -webkit-align-items: center;
            align-items: center; /* 纵轴的对齐方式   默认垂直 */
            /* 精密到8位 */
            line-height: 1.41176471;
            font-size: 17px;
            color: rgba(0,0,0,0.9);
            color: var(--weui-FG-0);
        }
        .weui-cell__bd {
            /* 主元素 其他元素占完位后剩下的都是它 */
            flex: 1;
            min-width: 0;
        }
        .weui-cell__ft {
            text-align: right;
            color: var(--weui-FG-1);
        }
        .weui-cell_access .weui-cell__ft:after {
            content:'';
            width: 8px;
            height: 8px;
            border-top: 1px solid white;
            border-right: 1px solid white;
            transform: rotate(45deg);
        }
    </style>
</head>
<body>
    
    <div class="weui-cells__title">设置</div>
    <div class="weui-cells">
        <div class="weui-cell">
            <div class="weui-cell__hd">
                <img src="" alt="" style="width: 20px; margin-right: 16px; display: block;">
            </div>
            <div class="weui-cell__bd">蓝牙</div>
            <div class="weui-cell__fd">打开</div>
        </div>
        <div class="weui-cell">
            <div class="weui-cell__hd">
                <img src="" alt="" style="width: 20px; margin-right: 16px; display: block;">
            </div>
            <div class="weui-cell__bd">蜂窝网络</div>
            <div class="weui-cell__fd">打开</div>
        </div>
    </div>
    <div class="weui-cells__title">带跳转的列表项</div>
    <div class="weui-cells">
        <a href="" class="weui-cell weui-cell_access">
            <img src="" alt="" style="width: 20px; margin-right: 16px; display: block;">
            <div class="weui-cell__bd">蓝牙</div>
            <div class="weui-cell__fd"></div>
        </a>
    </div>
</body>
</html>